/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;


import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Administrator
 */
@ManagedBean
@RequestScoped
public class SearchResult {

    String title;
    String content;
    String url;
    
    SearchResult currSR;
    ArrayList<SearchResult> listSR = new ArrayList<SearchResult>();

    public ArrayList<SearchResult> search(String keyword, String category){
        listSR = new  ArrayList<SearchResult>();
        if (category.equals("message")) {
        
            return listSR;
        }
        return null;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public SearchResult() {
    }

    public SearchResult(String title, String content, String url) {
        this.title = title;
        this.content = content;
        this.url = url;
    }
    
}
